package com.wenkang.stu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("sys_menu")
public class SysMenu {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String description;
    private String url;
    private String path;
    private String icon;
    private Integer type;
    private Integer parentId;
    @TableField(exist = false)
    private List<SysMenu> children;
    @TableField(exist = false)
    private List<SysRole> roleList;

}
